package com.wise.summer.v1.portal.content.productindustry;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.SkipUserAuth;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.summer.BasicSummer;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Tolerate;

import static com.wise.model.content.ContentErrMsgs.Err_001000250008;

/**
 * @author shaoming
 * @date 2019-09-09
 */
@Getter
@Setter
@Publish
@ApiInfo("获取行业详情")
@SkipUserAuth
public class GetProductIndustryById extends BasicSummer<GetProductIndustryById.Result> {

	@NotBlank(msg = Err_001000250008)
	private String id;

	@Getter
	@Setter
	@Builder
	public static class Result {
		@Tolerate
		public Result() {
			
		}

		@ApiInfo("产品ID")
		@Column("id")
		private String id;

		@ApiInfo("产品名")
		@Column("name")
		private String name;

		@ApiInfo("产品图片url")
		@Column("url")
		private String url;

		@ApiInfo("产品类别")
		@Column("category_id")
		private String categoryId;

		@ApiInfo("产品详情")
		@Column("content")
		private String content;
		public static final String _content = "content";

		@ApiInfo("微页面地址")
		@Column("page_id")
		private String pageId;

		@ApiInfo("产品标题")
		@Column("title")
		private String title;

		@ApiInfo("产品简介")
		@Column("intro")
		private String intro;

		@ApiInfo("用户手册URL")
		@Column("user_guide_url")
		private String userGuideUrl;

		@ApiInfo("产品彩页URL")
		@Column("product_intro_url")
		private String productIntroUrl;

		@ApiInfo("推荐标识")
		@Column("recommend")
		private boolean recommend;

		@ApiInfo("路由ID")
		@Column("route_id")
		private String routeId;

		@ApiInfo("1-上架;2-下架")
		@Column("state")
		private Integer state;

		@ApiInfo("seo_title")
		@Column("seo_title")
		private String seoTitle;

		@ApiInfo("重定向url")
		@Column("re_url")
		private String reUrl;

		@ApiInfo("草稿")
		@Column("draft")
		private String draft;

		@ApiInfo("tmall_url")
		private String tmallUrl;

		@ApiInfo("jd_url")
		private String jdUrl;

		@ApiInfo("jd_url")
		private String arUrl;
	}
}
